package org.ptkparty.shared.dto;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.ptkparty.shared.model.PtkEnum.GAME_TYPE;
import org.ptkparty.shared.model.PtkEnum.RESULT_TYPE;

import com.google.gwt.user.client.rpc.IsSerializable;

public class GameDto implements IsSerializable {

	private String id;

	private List<String> winner = new ArrayList<String>();

	private List<String> looser = new ArrayList<String>();

	private Date dateCreation;

	private String creator;

	private GAME_TYPE gameType;

	private RESULT_TYPE resultType;

	private String place;

	private int scoreWinner;

	private int scoreLooser;

	private boolean finished;

	private Double scaleWinner;

	private Double scaleLooser;

	private List<ResultDto> results;

	public List<String> getWinner() {
		return winner;
	}

	public void setWinner(List<String> winner) {
		this.winner = winner;
	}

	public List<String> getLooser() {
		return looser;
	}

	public void setLooser(List<String> looser) {
		this.looser = looser;
	}

	public Date getDateCreation() {
		return dateCreation;
	}

	public void setDateCreation(Date dateCreation) {
		this.dateCreation = dateCreation;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public GAME_TYPE getGameType() {
		return gameType;
	}

	public void setGameType(GAME_TYPE game_TYPE) {
		this.gameType = game_TYPE;
	}

	public RESULT_TYPE getResultType() {
		return resultType;
	}

	public void setResultType(RESULT_TYPE result_TYPE) {
		this.resultType = result_TYPE;
	}

	public String getPlace() {
		return place;
	}

	public void setPlace(String place) {
		this.place = place;
	}

	public int getScoreWinner() {
		return scoreWinner;
	}

	public void setScoreWinner(int scoreWinner) {
		this.scoreWinner = scoreWinner;
	}

	public int getScoreLooser() {
		return scoreLooser;
	}

	public void setScoreLooser(int scoreLooser) {
		this.scoreLooser = scoreLooser;
	}

	public boolean getFinished() {
		return finished;
	}

	public void setFinished(boolean finished) {
		this.finished = finished;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public void setScaleWinner(Double scaleWinner) {
		this.scaleWinner = scaleWinner;
	}

	public void setScaleLooser(Double scaleLooser) {
		this.scaleLooser = scaleLooser;
	}

	public Double getScaleWinner() {
		return scaleWinner;
	}

	public Double getScaleLooser() {
		return scaleLooser;
	}

	public List<ResultDto> getResults() {
		return results;
	}

	public void setResults(List<ResultDto> results) {
		this.results = results;
	}

	public void addResult(ResultDto result) {
		this.results.add(result);
	}

}
